﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityModel;
using DataAccess;

namespace Business
{
    public class AgencyBC
    {
        public Agency GetByKey(Int32 key, UserModel userInfo)
        {
            RetrieveHelper<Agency, UserModel> retrieve = new RetrieveHelper<Agency, UserModel>();

            return retrieve.GetByKey(key, userInfo);
        }

        public List<Agency> GetAll()
        {
            RetrieveHelper<Agency, UserModel> retrieve = new RetrieveHelper<Agency, UserModel>();

            return retrieve.GetAll();
        }       
    }
}
